<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AIfES 2: ailayer_batch_normalization_default.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="AIfES_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AIfES 2
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('ailayer__batch__normalization__default_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ailayer_batch_normalization_default.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Default implementation of the <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a>.  
<a href="#details">More...</a></p>

<p><a href="ailayer__batch__normalization__default_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data-type specific <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> struct for <a class="el" href="aimath__f32_8h.html">F32 </a>.  <a href="structailayer__batch__norm__f32.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a73f8c35b33b2a76dcb6393957b4feb79"><td class="memItemLeft" align="right" valign="top"><a id="a73f8c35b33b2a76dcb6393957b4feb79"></a>
typedef struct <a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ailayer_batch_norm_f32_t</b></td></tr>
<tr class="separator:a73f8c35b33b2a76dcb6393957b4feb79"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0c2e41aa208383db3214b3d501269d29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29">ailayer_batch_norm_f32_default</a> (<a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:a0c2e41aa208383db3214b3d501269d29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29">More...</a><br /></td></tr>
<tr class="separator:a0c2e41aa208383db3214b3d501269d29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3829408c071e57e78d450c8a5040df61"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#a3829408c071e57e78d450c8a5040df61">ailayer_batch_norm_cfirst_f32_default</a> (<a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:a3829408c071e57e78d450c8a5040df61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__batch__normalization__default_8h.html#a3829408c071e57e78d450c8a5040df61">More...</a><br /></td></tr>
<tr class="separator:a3829408c071e57e78d450c8a5040df61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae28c7e302e343c43dfaaae9a57e64f37"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#ae28c7e302e343c43dfaaae9a57e64f37">ailayer_batch_norm_chw_f32_default</a> (<a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:ae28c7e302e343c43dfaaae9a57e64f37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__batch__normalization__default_8h.html#ae28c7e302e343c43dfaaae9a57e64f37">More...</a><br /></td></tr>
<tr class="separator:ae28c7e302e343c43dfaaae9a57e64f37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac12e2f90fe7e2d0605be1bac5bfef845"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#ac12e2f90fe7e2d0605be1bac5bfef845">ailayer_batch_norm_cl_f32_default</a> (<a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:ac12e2f90fe7e2d0605be1bac5bfef845"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__batch__normalization__default_8h.html#ac12e2f90fe7e2d0605be1bac5bfef845">More...</a><br /></td></tr>
<tr class="separator:ac12e2f90fe7e2d0605be1bac5bfef845"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72b95181b30ac998e1d160c17cbbab63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#a72b95181b30ac998e1d160c17cbbab63">ailayer_batch_norm_clast_f32_default</a> (<a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:a72b95181b30ac998e1d160c17cbbab63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer (channels last) </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__batch__normalization__default_8h.html#a72b95181b30ac998e1d160c17cbbab63">More...</a><br /></td></tr>
<tr class="separator:a72b95181b30ac998e1d160c17cbbab63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab81da690483beb270cc408e218c6bb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#aab81da690483beb270cc408e218c6bb2">ailayer_batch_norm_hwc_f32_default</a> (<a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:aab81da690483beb270cc408e218c6bb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer (channels first) </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__batch__normalization__default_8h.html#aab81da690483beb270cc408e218c6bb2">More...</a><br /></td></tr>
<tr class="separator:aab81da690483beb270cc408e218c6bb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa096a91c11fb47f511b4f6aaed7445bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#aa096a91c11fb47f511b4f6aaed7445bb">ailayer_batch_norm_lc_f32_default</a> (<a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:aa096a91c11fb47f511b4f6aaed7445bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer (channels first) </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__batch__normalization__default_8h.html#aa096a91c11fb47f511b4f6aaed7445bb">More...</a><br /></td></tr>
<tr class="separator:aa096a91c11fb47f511b4f6aaed7445bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1e571f84f4239567e43a3746b5b7508"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__batch__normalization__default_8h.html#ae1e571f84f4239567e43a3746b5b7508">ailayer_batch_norm_init_params_f32_default</a> (<a class="el" href="structailayer.html">ailayer_t</a> *self)</td></tr>
<tr class="memdesc:ae1e571f84f4239567e43a3746b5b7508"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="aimath__f32_8h.html">F32 </a> default implementation of the <a class="el" href="structailayer.html#aedac95cb35a037d0e513ac690c34681a" title="Initialize the (trainable and not trainable) parameters of the layer with default initializers.">ailayer.init_params</a> function for the Batch Normalization layer  <a href="ailayer__batch__normalization__default_8h.html#ae1e571f84f4239567e43a3746b5b7508">More...</a><br /></td></tr>
<tr class="separator:ae1e571f84f4239567e43a3746b5b7508"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Default implementation of the <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a>. </p>
<dl class="section version"><dt>Version</dt><dd>2.2.0 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2020-2023 Fraunhofer Institute for Microelectronic Circuits and Systems. All rights reserved.<br  />
<br  />
 AIfES is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br  />
<br  />
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.<br  />
<br  />
 You should have received a copy of the GNU Affero General Public License along with this program. If not, see <a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>.</dd></dl>
<p>Hardware independent implementations of the Batch Normalization layer in <a class="el" href="aimath__f32_8h.html">F32 </a> data-type.</p>
<p>For more information about the Batch Normalization layer refer to <a class="el" href="ailayer__batch__normalization_8h.html" title="Base layer  implementation of the Batch Normalization layer.">ailayer_batch_normalization.h</a>. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a3829408c071e57e78d450c8a5040df61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3829408c071e57e78d450c8a5040df61">&#9670;&nbsp;</a></span>ailayer_batch_norm_cfirst_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_batch_norm_cfirst_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29" title="Initializes and connect a Batch Normalization layer  with the F32  default implementation.">ailayer_batch_norm_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="ae28c7e302e343c43dfaaae9a57e64f37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae28c7e302e343c43dfaaae9a57e64f37">&#9670;&nbsp;</a></span>ailayer_batch_norm_chw_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_batch_norm_chw_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29" title="Initializes and connect a Batch Normalization layer  with the F32  default implementation.">ailayer_batch_norm_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="ac12e2f90fe7e2d0605be1bac5bfef845"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac12e2f90fe7e2d0605be1bac5bfef845">&#9670;&nbsp;</a></span>ailayer_batch_norm_cl_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_batch_norm_cl_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29" title="Initializes and connect a Batch Normalization layer  with the F32  default implementation.">ailayer_batch_norm_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="a72b95181b30ac998e1d160c17cbbab63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72b95181b30ac998e1d160c17cbbab63">&#9670;&nbsp;</a></span>ailayer_batch_norm_clast_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_batch_norm_clast_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer (channels last) </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29" title="Initializes and connect a Batch Normalization layer  with the F32  default implementation.">ailayer_batch_norm_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="a0c2e41aa208383db3214b3d501269d29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c2e41aa208383db3214b3d501269d29">&#9670;&nbsp;</a></span>ailayer_batch_norm_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_batch_norm_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p><b>Example:</b> Create the layer structure with pretrained weights, means and variances:<br  />
In C: </p><div class="fragment"><div class="line"><span class="comment">// Use constant data only for inference. For training remove the const qualifier!!</span></div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> means_data_bn[3] = {-0.743f, 1.133f, -0.05f};</div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> vars_data_bn[3] = {0.9f, 1.0f, 0.87f};</div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> betas_data_bn[3] = {0.1f, -0.1f, 0.0f};</div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> gammas_data_bn[3] = {4.0f, 2.0f, 1.0f};</div>
<div class="line"><a class="code" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> bn_layer = {</div>
<div class="line">    .<a class="code" href="structailayer__batch__norm__f32.html#ac5a20618f5afb39efca892de7a2b68c6">momentum</a> =                 0.9f,</div>
<div class="line">    .eps =                      1e-6f,</div>
<div class="line">    .base.moving_means =        means_data_bn,</div>
<div class="line">    .base.moving_variances =    vars_data_bn,</div>
<div class="line">    .base.betas =               betas_data_bn,</div>
<div class="line">    .base.gammas =              gammas_data_bn</div>
<div class="line">};</div>
<div class="ttc" id="astructailayer__batch__norm__f32_html"><div class="ttname"><a href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32</a></div><div class="ttdoc">Data-type specific Batch Normalization layer  struct for F32 .</div><div class="ttdef"><b>Definition:</b> ailayer_batch_normalization_default.h:46</div></div>
<div class="ttc" id="astructailayer__batch__norm__f32_html_ac5a20618f5afb39efca892de7a2b68c6"><div class="ttname"><a href="structailayer__batch__norm__f32.html#ac5a20618f5afb39efca892de7a2b68c6">ailayer_batch_norm_f32::momentum</a></div><div class="ttdeci">aiscalar_f32_t momentum</div><div class="ttdoc">Storage for ailayer_batch_norm.momentum scalar in F32.</div><div class="ttdef"><b>Definition:</b> ailayer_batch_normalization_default.h:49</div></div>
</div><!-- fragment --><p> In C, C++ and on Arduino: </p><div class="fragment"><div class="line"><span class="comment">// Use constant data only for inference. For training remove the const qualifier!!</span></div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> means_data_bn[3] = {-0.743f, 1.133f, -0.05f};</div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> vars_data_bn[3] = {0.9f, 1.0f, 0.87f};</div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> betas_data_bn[3] = {0.1f, -0.1f, 0.0f};</div>
<div class="line"><span class="keyword">const</span> <span class="keywordtype">float</span> gammas_data_bn[3] = {4.0f, 2.0f, 1.0f};</div>
<div class="line"><a class="code" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> bn_layer = AILAYER_BATCH_NORM_F32_M(</div>
<div class="line">                                                                <span class="comment">/* momentum =*/</span>         0.9f,</div>
<div class="line">                                                                <span class="comment">/* eps =*/</span>              1e-6f,</div>
<div class="line">                                                                <span class="comment">/* means =*/</span>            means_data_bn,</div>
<div class="line">                                                                <span class="comment">/* variances =*/</span>        vars_data_bn,</div>
<div class="line">                                                                <span class="comment">/* betas (offset) =*/</span>   betas_data_bn,</div>
<div class="line">                                                                <span class="comment">/* gammas (scale) =*/</span>   gammas_data_bn</div>
<div class="line">                                                             );</div>
</div><!-- fragment --><p><b>Example:</b> Create the layer structure for automatic parameter distribution (e.g. for training):<br  />
In C: </p><div class="fragment"><div class="line"><a class="code" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> bn_layer = {</div>
<div class="line">    .<a class="code" href="structailayer__batch__norm__f32.html#ac5a20618f5afb39efca892de7a2b68c6">momentum</a> =                 0.9f,</div>
<div class="line">    .eps =                      1e-6f</div>
<div class="line">};</div>
</div><!-- fragment --><p> In C, C++ and on Arduino: </p><div class="fragment"><div class="line"><a class="code" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> bn_layer = AILAYER_BATCH_NORM_F32_A(</div>
<div class="line">                                                                <span class="comment">/* momentum =*/</span>         0.9f,</div>
<div class="line">                                                                <span class="comment">/* eps =*/</span>              1e-6f</div>
<div class="line">                                                             );</div>
</div><!-- fragment --><p><b>Example:</b> Initialize and connect the layer for data with channels first (all options are equivalent):<br  />
</p><div class="fragment"><div class="line">bn_layer.channel_axis = 1;</div>
<div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29">ailayer_batch_norm_f32_default</a>(&amp;bn_layer, x);</div>
<div class="ttc" id="aailayer__batch__normalization__default_8h_html_a0c2e41aa208383db3214b3d501269d29"><div class="ttname"><a href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29">ailayer_batch_norm_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_batch_norm_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Batch Normalization layer  with the F32  default implementation.</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#a3829408c071e57e78d450c8a5040df61">ailayer_batch_norm_cfirst_f32_default</a>(&amp;bn_layer, x);</div>
<div class="ttc" id="aailayer__batch__normalization__default_8h_html_a3829408c071e57e78d450c8a5040df61"><div class="ttname"><a href="ailayer__batch__normalization__default_8h.html#a3829408c071e57e78d450c8a5040df61">ailayer_batch_norm_cfirst_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_batch_norm_cfirst_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Batch Normalization layer  (channels first) with the F32  default implement...</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#ae28c7e302e343c43dfaaae9a57e64f37">ailayer_batch_norm_chw_f32_default</a>(&amp;bn_layer, x);</div>
<div class="ttc" id="aailayer__batch__normalization__default_8h_html_ae28c7e302e343c43dfaaae9a57e64f37"><div class="ttname"><a href="ailayer__batch__normalization__default_8h.html#ae28c7e302e343c43dfaaae9a57e64f37">ailayer_batch_norm_chw_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_batch_norm_chw_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Batch Normalization layer  (channels first) with the F32  default implement...</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#ac12e2f90fe7e2d0605be1bac5bfef845">ailayer_batch_norm_cl_f32_default</a>(&amp;bn_layer, x);</div>
<div class="ttc" id="aailayer__batch__normalization__default_8h_html_ac12e2f90fe7e2d0605be1bac5bfef845"><div class="ttname"><a href="ailayer__batch__normalization__default_8h.html#ac12e2f90fe7e2d0605be1bac5bfef845">ailayer_batch_norm_cl_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_batch_norm_cl_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Batch Normalization layer  (channels first) with the F32  default implement...</div></div>
</div><!-- fragment --><p><b>Example:</b> Initialize and connect the layer for data with channels last (all options are equivalent):<br  />
</p><div class="fragment"><div class="line">bn_layer.channel_axis = -1;</div>
<div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29">ailayer_batch_norm_f32_default</a>(&amp;bn_layer, x);</div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#a72b95181b30ac998e1d160c17cbbab63">ailayer_batch_norm_clast_f32_default</a>(&amp;bn_layer, x);</div>
<div class="ttc" id="aailayer__batch__normalization__default_8h_html_a72b95181b30ac998e1d160c17cbbab63"><div class="ttname"><a href="ailayer__batch__normalization__default_8h.html#a72b95181b30ac998e1d160c17cbbab63">ailayer_batch_norm_clast_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_batch_norm_clast_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Batch Normalization layer (channels last)  with the F32  default implementa...</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#aab81da690483beb270cc408e218c6bb2">ailayer_batch_norm_hwc_f32_default</a>(&amp;bn_layer, x);</div>
<div class="ttc" id="aailayer__batch__normalization__default_8h_html_aab81da690483beb270cc408e218c6bb2"><div class="ttname"><a href="ailayer__batch__normalization__default_8h.html#aab81da690483beb270cc408e218c6bb2">ailayer_batch_norm_hwc_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_batch_norm_hwc_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Batch Normalization layer (channels first)  with the F32  default implement...</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__batch__normalization__default_8h.html#aa096a91c11fb47f511b4f6aaed7445bb">ailayer_batch_norm_lc_f32_default</a>(&amp;bn_layer, x);</div>
<div class="ttc" id="aailayer__batch__normalization__default_8h_html_aa096a91c11fb47f511b4f6aaed7445bb"><div class="ttname"><a href="ailayer__batch__normalization__default_8h.html#aa096a91c11fb47f511b4f6aaed7445bb">ailayer_batch_norm_lc_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_batch_norm_lc_f32_default(ailayer_batch_norm_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Batch Normalization layer (channels first)  with the F32  default implement...</div></div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="aab81da690483beb270cc408e218c6bb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab81da690483beb270cc408e218c6bb2">&#9670;&nbsp;</a></span>ailayer_batch_norm_hwc_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_batch_norm_hwc_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer (channels first) </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29" title="Initializes and connect a Batch Normalization layer  with the F32  default implementation.">ailayer_batch_norm_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="ae1e571f84f4239567e43a3746b5b7508"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1e571f84f4239567e43a3746b5b7508">&#9670;&nbsp;</a></span>ailayer_batch_norm_init_params_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ailayer_batch_norm_init_params_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="aimath__f32_8h.html">F32 </a> default implementation of the <a class="el" href="structailayer.html#aedac95cb35a037d0e513ac690c34681a" title="Initialize the (trainable and not trainable) parameters of the layer with default initializers.">ailayer.init_params</a> function for the Batch Normalization layer </p>
<p><em>Implementation of <a class="el" href="structailayer.html#aedac95cb35a037d0e513ac690c34681a" title="Initialize the (trainable and not trainable) parameters of the layer with default initializers.">ailayer.init_params</a>.</em></p>
<p>The function will initialize the tensors for moving_means and betas with zeros and for moving_variances and gammas with ones.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*self</td><td>The layer structure </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa096a91c11fb47f511b4f6aaed7445bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa096a91c11fb47f511b4f6aaed7445bb">&#9670;&nbsp;</a></span>ailayer_batch_norm_lc_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_batch_norm_lc_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__batch__norm__f32.html">ailayer_batch_norm_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__batch__normalization_8h.html">Batch Normalization layer (channels first) </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__batch__normalization__default_8h.html#a0c2e41aa208383db3214b3d501269d29" title="Initializes and connect a Batch Normalization layer  with the F32  default implementation.">ailayer_batch_norm_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5233a5861230ad4bc52bfd822c86fe04.html">cnn</a></li><li class="navelem"><a class="el" href="dir_af585f9a5a89e54017897db60f1719d0.html">default</a></li><li class="navelem"><a class="el" href="dir_f6a4d4132c61374db307664f3842a649.html">ailayer</a></li><li class="navelem"><a class="el" href="ailayer__batch__normalization__default_8h.html">ailayer_batch_normalization_default.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
